﻿@model Lion.WeiXin.Core.Models.CategoryModel
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ChildPageJs {
    <link rel="stylesheet" href="/Kindeditor/themes/default/default.css" />
    <script charset="utf-8" src="/Kindeditor/kindeditor-min.js"></script>
  @*  <script charset="utf-8" src="/Kindeditor/kindeditor.js"></script> *@
    <script charset="utf-8" src="/Kindeditor/lang/zh_CN.js"></script>
    <script src="/Scripts/App_Scripts/CategoryCreate.js" type="text/javascript"></script>
}
<form id="fmSave" name="fmSave" method="post" >
    <div class="titstyle01 clearfix">
        <strong>添加栏目</strong>
    </div>
    <div class="boxstyle01 clearfix pt25 pb10 pl10">
        <table id="tbl" class="table100">
            <tr>
                <td>
                    <span class="cf60">*</span>@Html.Label("ParentCode", "父编码")：
                </td>
                <td>
                    <input type="hidden" id="Action" name="Action" value="Create" />
                    <input type="text" id="ParentCode" name="ParentCode"  class="slcw120s f_l m5" value="@Model.ParentCode" readonly="true"  />
                </td>
            </tr>
            <tr>
                <td>
                    <span class="cf60">*</span>@Html.Label("Code", "编码")：
                </td>
                <td>
                    <input type="hidden" id="AID" name="AID" value="0" class="slcw120s f_l m5" />
                    <input type="text" id="Code" name="Code"  class="slcw120s f_l m5" value="@Model.Code" readonly="true"  />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Name", "名称")：
                </th>
                <td>
                    <input type="text" id="Name" name="Name" class="slcw120s f_l m5" />
                </td>
            </tr>
             <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("DirName", "目录名")：
                </th>
                <td>
                    <input type="text" id="DirName" name="DirName" class="slcw120s f_l m5" />
                </td>
            </tr>
             <tr align="left">
                <th>
                    <span class="cf60">*</span>栏目模板：
                </th>
                <td>
                    @Html.DropDownList("TemplateID", (List<SelectListItem>)ViewData["selTemplate"], new { @class = "slcw180 m5" })
                </td>
            </tr>            
             <tr align="left">
                <th>
                    <span class="cf60"></span>@Html.Label("Summary", "简述")：
                </th>
                <td>
                     <textarea style="height: 50px;" cols="10" rows="20" class="slcw120s f_l m5" id="Summary" name="Summary"></textarea>
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60"></span>@Html.Label("IsShow", "首页显示")：
                </th>
                <td>
                    <label><input type="radio" id="rdIsShow"  name="IsShow" value="1" />显示</label>
                    <label><input type="radio" id="rdIsNotShow" name="IsShow" value="0" checked="checked" />不显示</label> 
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60"></span>@Html.Label("Sort", "排序")：
                </th>
                <td>
                    <input type="text" id="Sort" name="Sort" value="0" />
                </td>
            </tr>
             <tr align="left">
                <th>
                    <span class="cf60"></span>@Html.Label("Image", "栏目图片")：
                </th>
                <td>
                     <div>
                    <input type="text" id="Image" name="Image" value="" class="slcw180 f_l m5" readonly="true" />
                     <input type="button" id="image3" class="btn02 f_l m15" value="浏览..." />
                        </div>
                    <div class="clear">
                    <img id="imgPic" style="display:none;width:350px;height:200px;" src="#" />
                    </div>
                </td>
            </tr>
             <tr align="left">
                <th>
                    <span class="cf60"></span>栏目内容：
                </th>
                <td>
                    <textarea  style="width:90%;height:350px;" id="Content" name="Content"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="确 定" class="btn02 f_l m15" id="btnSave" />
                    <input type="button" class="btn02 f_l m15" id="btnCancel" value="取 消" />
                </td>
            </tr>
        </table>
    </div>
</form>
